import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:jyofservice/fluro/Route_handlers.dart';

class Routes {
  static String root = "/";
  static String home = "/home";
  static String sf = "/sf";
  static String login = "/login";
  static String gongdanchuli = "/gdcl";
  static String mine = "/mine";
  static String gongdandiaodu = "/gddd";
  static String gongdandiaodudetail = "/dddetail";
  static String workRecord = "/workrecord";
  static String histroy = "/histroy";
  static String commonUnit = "/commonUnit";
  static String callRecord = "/callRecord";
  static String tongJiChaXun = "/tongJiChaXun";
  static String seatCharge = "/seatCharge";
  static String sign = "/sign";
  static String jicha = "/jicha";
  static String jpushMsg = "/jpushMsg";


  static void configureRoutes(FluroRouter router) {
    router.notFoundHandler = new Handler(
        handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
          print("ROUTE WAS NOT FOUND");
        }
    );

    /// 第一个参数是路由地址，第二个参数是页面跳转和传参，第三个参数是默认的转场动画，可以看上图
    /// 我这边先不设置默认的转场动画，转场动画在下面会讲，可以在另外一个地方设置（可以看NavigatorUtil类）
    router.define(root, handler: welcomeHandler);
    router.define(home, handler: homeHandler);
    router.define(sf, handler: sfHandler);
    router.define(login, handler: loginHandler);
    router.define(mine, handler: mineHandler);
    router.define(gongdandiaodu, handler: gongdandiaoduHandler);
    router.define(gongdandiaodudetail, handler: diaoduDetailHandler);
    router.define(workRecord, handler: workRecordHandler);
    router.define(histroy, handler: historyHandler);
    router.define(commonUnit, handler: commonUnitHandler);
    router.define(callRecord, handler: callRecordHandler);
    router.define(tongJiChaXun, handler: tognJiChaXunHandler);
    router.define(seatCharge, handler: seatChargeHandler);
    // router.define(sign, handler: signHandler);
    router.define(jpushMsg, handler: jpushMsgHandler);
    router.define(jicha, handler: jichaInfoHandler);

  }
}